﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NXBSaiGon.Admin
{
    public partial class SiteManage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] == null)
            {
                Label1.Text = " [<a href='../Account/Login.aspx'>Login</a>] ";

            }
            else
            {
                Label1.Text = "Wellcome <b>" + Session["username"] + "</b> [<a href='../Account/Logout.aspx'>Logout</a>] ";
                CheckOutLabel.Text = "[<a href='../CheckOut.aspx'>CheckOut</a>]";
                string user = Session["username"].ToString();
                if (user == "admin")
                {
                    ManageLabel.Text = " [<a href='../Admin/QuanLiSach.aspx'>Manage</a>] ";
                }
            }
        }
    }
}